package com.hzdl.house_mgr.service;

import com.github.pagehelper.PageInfo;
import com.hzdl.house_mgr.bean.House;
import com.hzdl.house_mgr.bean.Img;

import java.util.List;

public interface HouseService {
    //房屋的分页和数量查询
    PageInfo<House> findAllByWhere(House house,Integer page,Integer limit);
    int getCountByWhere(House house);

    //添加房屋信息
    int addHouse(House house);
    //修改房屋信息
    int updateHouse(House house);
    //删除房屋信息
    int deleteHouse(Integer houseId);
    //批量删除房屋信息
    int deleteAllHouse(String[] houseIds);
    //查找房屋信息
    House findHouse(Integer houseId);

    House findHouseByHid(Integer houseId);

    List<Img> findImgById(Integer houseId);

    //页面查询房屋
    List<House> findByWhere(String community);
    int getCountByWhere1(String community);

    List<House> findAll();

    int getCount();
    //网页通过id查找房屋信息
    House findById(int houseId);
    //发布房源
    int pushHouse(House house);
}
